package com.sinog.auth.controller;

import com.sinog.core.util.CaptchsUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @desc 验证码控制器
 * @author lj
 * @date -
 */
@Controller
public class CaptchaController {

    /**
     * 描述
     * @param request request
     * @param response response
     */
    @RequestMapping(value = "/getCaptcha")
    public void getCaptcha(HttpServletRequest request,HttpServletResponse response) throws IOException {
        CaptchsUtil captchsUtil = new CaptchsUtil();
        captchsUtil.out(request,response);
    }
}